﻿<%@ Page Title="VBNet" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="VBNet.aspx.vb" Inherits="CS290_Capstone_Project.About" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        #Select1
        {
            width: 139px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="newTopics">
<center>The Newest Topics:</center>
    <div class="newTopicsRecent">
        The most recent topics go here:
        <br />
        <asp:GridView ID="gridViewNewVBtopics" runat="server" 
            AutoGenerateColumns="False" DataKeyNames="idPost" DataSourceID="SqlDataSource2" 
            Height="143px" Width="910px">
            <Columns>
                <asp:BoundField DataField="userName" HeaderText="userName" 
                    SortExpression="userName" />
                <asp:BoundField DataField="title" HeaderText="title" SortExpression="title" />
                <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:postsSGNMConnectionString %>" 
            SelectCommand="SELECT * FROM [postSGNM]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:postsSGNMConnectionString %>" 
            SelectCommand="SELECT * FROM [postSGNM]"></asp:SqlDataSource>
    </div>
<center>Submit a new topic:</center>
    <div class="newTopicsRecent">
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
    <asp:Label ID="lblTitle" runat="server" Text="Title:"></asp:Label>
        <br />
        <center><asp:TextBox ID="TextBox1" runat="server" Height="22px" Width="800px"></asp:TextBox></center>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblDetail" runat="server" Text="Detail:"></asp:Label>
        <br />
        <center><asp:TextBox ID="TextBox2" runat="server" Height="259px" Width="800px"></asp:TextBox>
            <br />
            <asp:Button ID="btnSubmit" runat="server" Text="Create New Topic" />
            <asp:Button ID="btnCancel" runat="server" Height="26px" Text="Cancel" 
                Width="154px" />
        </center>
    
    </div>
</div>
   

    
</asp:Content>